﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>


    <link href="css/all.css" rel="stylesheet" type="text/css">
    <link href="js/bstable/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="js/bstable/css/bootstrap-table.css" rel="stylesheet" type="text/css">
</head>

<body>

    <div class="div_find">

        <p><label class="find_labela">房间标识：</label><input type="text" class="find_input">

            <label class="find_labela">房间号：</label><input type="text" class="find_input">
            <label class="find_labela">户主身份证：</label><input type="text" class="find_input">
        </p>
        <p><label class="find_labela">房屋状态：</label><select class="find_input">
        <option>未出售</option>
        <option>已出售</option>
        <option>待出租</option>
        <option>已入住</option>


    </select>
            <label class="find_labela">所属楼id：</label><input type="text" class="find_input">
            <label class="find_labela">户主名字：</label><input type="text" class="find_input"><input type="button" value="添加业主信息" class="find_but" id="but_open"><input type="button" value="重置" class="find_but" id="but_close02">

    </div>
    <p class="p_but">

        <i class="down_i"></i><a href="#" class="add_a">导出</a>
        <i class="print_i"></i><a href="#" class="add_a">打印</a>
    </p>
    <p>
        <table data-url="json/data_alae_list.json" id="table" class="table_style" style="margin: 0 auto">
        </table>
    </p>

    <script src="js/jquery/jQuery-2.2.0.min.js"></script>
    <script src="js/bstable/js/bootstrap.min.js"></script>
    <script src="js/bstable/js/bootstrap-table.js"></script>
    <script src="js/bstable/js/bootstrap-table-zh-CN.min.js"></script>
    <script src="js/date/js/laydate.js"></script>
    <script>
        ! function() {
            laydate.skin('danlan'); //切换皮肤，请查看skins下面皮肤库
            laydate({
                elem: '#demo'
            });
            laydate({
                elem: '#demo1'
            }); //绑定元素
        }();
    </script>

    <script type="text/javascript">
        $(function() {
            $('#table').bootstrapTable({
                method: "get",
                striped: true,
                singleSelect: false,
                url: "json/allFind.json",
                dataType: "json",
                pagination: true, //分页
                pageSize: 10,
                pageNumber: 1,
                search: false, //显示搜索框
                contentType: "application/x-www-form-urlencoded",
                queryParams: null,
                columns: [{
                    checkbox: "true",
                    field: 'check',
                    align: 'center',
                    valign: 'middle'
                }, {
                    title: "房间标识",
                    field: 'id',
                    align: 'center',
                    valign: 'middle'
                }, {
                    title: '房间号',
                    field: 'class',
                    align: 'center',
                    valign: 'middle'
                }, {
                    title: '户主身份证',
                    field: 'resouce',
                    align: 'center',
                    valign: 'middle'
                }, {
                    title: '房屋状态',
                    field: 'person',
                    align: 'center'
                }, {
                    title: '所属楼id',
                    field: 'part',
                    align: 'center'
                }, {
                    title: '户主名字',
                    field: 'date01',
                    align: 'center'
                }, ]
            });
        })
    </script>
    <script src="js/layer_v2.1/layer/layer.js"></script>
    <script>
        function openlayer(id) {
            layer.open({
                type: 2,
                title: '添加信息',
                shadeClose: true,
                shade: 0.5,
                skin: 'layui-layer-rim',
                //            maxmin: true,
                closeBtn: 1,
                area: ['98%', '92%'],
                shadeClose: true,
                closeBtn: 1,
                content: 'lay01.html'
                    //iframe的url
            });
        }
    </script>
    <script>
        $(function() {
            $(".find_span").click(function() {
                $("#open").show();
                $(this).hide();
                $(".find_span1").show();
                $("#but_close02").hide();
                $("#but_open").hide();

            })
            $(".find_span1").click(function() {
                $("#open").hide();
                $(this).hide();
                $(".find_span").show();
                $("#but_open").show();
                $("#but_close02").show();

            })

        })
    </script>

</body>

</html>